/**
 * 
 */
package com.google.code.netz.wfe.events;

import static com.google.code.netz.wfe.events.ActivityEvent.EventType.ACTIVITY_CLOSED;
import static com.google.code.netz.wfe.events.ActivityEvent.EventType.ACTIVITY_OPENED;
import static com.google.code.netz.wfe.events.ActivityEvent.EventType.ACTIVITY_SUSPENDED;

/**
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @since 1.0
 * @version $Id: ActivityEventListener.java 17 2009-02-09 13:08:49Z rahul.thakur.xdev $
 */
public class ActivityEventListener implements ITypedEventListener<ActivityEvent> {

	/**
	 * {@inheritDoc}
	 * 
	 * @see com.google.code.netz.wfe.events.ITypedEventListener#onEvent(com.google.code.netz.wfe.events.TypedEvent)
	 */
	@Override
	public void onEvent(ActivityEvent event) {
		if (event.getType() == ACTIVITY_OPENED)
			handleActivityStartedEvent(event);
		else if (event.getType() == ACTIVITY_CLOSED)
			handleActivityCompletedEvent(event);
		else if (event.getType() == ACTIVITY_SUSPENDED)
			handleActivitySuspendedEvent(event);
	}

	/**
	 * 
	 * @param event
	 */
	private void handleActivitySuspendedEvent(ActivityEvent event) {
		// TODO Auto-generated method stub

	}

	/**
	 * 
	 * @param event
	 */
	private void handleActivityCompletedEvent(ActivityEvent event) {
		// TODO Auto-generated method stub

	}

	/**
	 * 
	 * @param event
	 */
	private void handleActivityStartedEvent(ActivityEvent event) {
		// TODO Auto-generated method stub

	}

}
